using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class StrongZPLARayEffectController : MonoBehaviour
{
    public float disappearSpeed;
    private SpriteRenderer spriteRenderer;
    void Start()
    {
        spriteRenderer = GetComponent<SpriteRenderer>();
    }

    // Update is called once per frame
    void Update()
    {
        Color color = spriteRenderer.color;
        color.a -= disappearSpeed;       
        if (color.a <= 0)
        {
            Destroy(gameObject);
        }
        spriteRenderer.color = color;
    }
}
